package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.entity.OrderInfo;
import com.project.entity.PreOrder;
import com.project.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lovo
 * @since 2023-07-21
 */
@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    public void   addOrderInfoList(@Param("orderId") Integer orderId,@Param("preList") List<PreOrder> productList);

public IPage<OrderInfo> cutByItem(Page page,@Param("factoryName") String factoryName,@Param("startDate") String startDate,@Param(("endDate")) String endDate);
    public List<Product> findById(Integer orderId);
}
